﻿using CX.Essential.Domain.溯源管理;
using Microsoft.EntityFrameworkCore;

namespace CX.Essential.Infrastructure
{
    public class CXDbContext : DbContext
    {
        /// <summary>
        /// 上下文
        /// </summary>
        /// <param name="options"></param>
        public CXDbContext(DbContextOptions<CXDbContext> options) : base(options) { }
        /// <summary>
        /// 商品信息
        /// </summary>
        public DbSet<GoodsModel> gModels { get; set; }
        /// <summary>
        /// 溯源管理表（基本信息）
        /// </summary>
        public DbSet<EssentialModel> eModels { get; set; }
        /// <summary>
        /// 详情
        /// </summary>
        public DbSet<DetailsModel> dModels { get; set; }

    }
}